﻿@model IEnumerable<Mrt.BoardGameUp.Model.BoardGame>

@{
    ViewBag.Title = "Board games";
}

@Html.ActionLink("New", "Create", null, new { @class = "btn btn-primary pull-right" })
<h1>@ViewBag.Title</h1>

<table class="table">
	<thead>
		<tr>
			<th>Name</th>
			<th>Created on</th>
		</tr>
	</thead>
	<tbody>

@foreach(var bg in Model) {
<tr>
	<td>
		@bg.Name
	</td>
	<td>
		@string.Format("{0:G}", bg.CreateDate)
	</td>
</tr>
}
	</tbody>
</table>
